/**
 * User Controller
 */
/**
 * 问题
 *  1. 怎么对表字段绑定
 *  2. 怎么对其他service的服务进行处理
 *  3
 */

import {Router} from 'express';
//import Service from '../service/User';
//import BaseConterller from './Base';

let router = Router();
//let service = new Service();

//let user = require('../entity/User');

@RequestMapping({value:'/user'})
@Controller
class UserController{
	/**
	 * [constructor 构造函数]
	 */
	constructor() {
		
		//super(router);

		//this.service = service;

		
		router.get('/abc', this.abc);
	}

	@RequestMapping({value: '/abc', method: 'POST'})
	abc(req, res) {
		res.send(1111);
	}
}


new UserController();

export default router;